]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
js/main: Unset input method on shutdown
authorJonas Ådahl <jadahl@gmail.com>
Fri, 24 Mar 2023 10:26:49 +0000 (11:26 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Thu, 20 Apr 2023 12:52:01 +0000 (14:52 +0200)
After shutdown, the Javascript context will be disposed, so we must make
sure we remain the active input method after this point.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6535
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2722>

js/ui/main.js

index cf9357f0f8086669a4c2b47f8c33e7653fe110ad..6ecb1a06bdbd561a2c2a95945c878248a1c11413 100644 (file)
@@ -241,6 +241,8 @@ function _initializeUI() {
 
     inputMethod = new InputMethod.InputMethod();
     Clutter.get_default_backend().set_input_method(inputMethod);
+    global.connect('shutdown',
+        () => Clutter.get_default_backend().set_input_method(null));
 
     screenshotUI = new Screenshot.ScreenshotUI();